package jxerializeml.errors.input;

import jxerializeml.errors.JXerializeMLError;

/**
 * This class represents general exception, which may occur during reading, deserializing etc.
 * 
 * @author Tomáš Zíma
 */
@SuppressWarnings("serial")
public class InputError extends JXerializeMLError {
	/**
	 * Saves error message and original exception which was thrown.
	 * 
	 * @param errorMessage
	 *     String describing the error.
	 *     
	 * @param originalException
	 *     Exception, which was originally thrown. May be null if any.
	 */
	public InputError(String errorMessage, Exception originalException) {
		super(errorMessage);
		this.setOriginalException(originalException);
	}
}
